package com.foredu.fiqs.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Description:<br/>
 * 领域模型：工资条目明细类型，记录工资条目明细类型<br/>
 * Date:<br/>
 * 2014/5/13<br/>
 * 
 * @author hushigang
 */

@Entity
@Table(name = "T_SalaryItemDetailType")
public class SalaryItemDetailType implements Serializable {

	private static final long serialVersionUID = 1L;
	private int id;// 工资条目明细类型ID
	private String name;// 工资条目明细类型名称
	private SalaryItemType type;//所属工资条目类型

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	@Column
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@ManyToOne
	@JoinColumn(name = "salaryItemType_id")
	public SalaryItemType getType() {
		return type;
	}

	public void setType(SalaryItemType type) {
		this.type = type;
	}
}
